package com.album.bean;

import java.util.HashMap;
import java.util.Map;

public class ErrorInfo implements java.io.Serializable{
	
	public static String error_1000 = "-1000";	//未知的IMSI
	public static String error_1001 = "-1001";	//IMSI未绑定任何相册用户
	public static String error_3001	= "-3001";	//未绑定到指定的相册
	public static String error_3002	= "-3002";	//指定的相册用户不存在
	public static String error_4000	= "-4000";	//缺少输入参数错误
	public static String error_4001	= "-4001";	//输入参数错误
	public static String error_5000	= "-5000";	//相册平台故障
	public static String error_5001	= "-5001";	//相册平台暂无数据
	public static String error_5002	= "-5002";	//数据操作失败
	public static String error_9000	= "-9000";	//其它错误
	
	public static int error_500 = 500;
	public static int error_404 = 404;
	public static int error_400 = 400;
	
	public static Map<String,String> errorMap = new HashMap<String,String>();
	public static Map<Integer,String> errorMap_2 = new HashMap<Integer,String>();
	
	static{
		errorMap.put(error_1000, "未知的IMSI");
		errorMap.put(error_1001, "IMSI未绑定任何相册用户");
		errorMap.put(error_3001, "未绑定到指定的相册");
		errorMap.put(error_3002, "指定的相册用户不存在");
		errorMap.put(error_4000, "缺少输入参数错误");
		errorMap.put(error_4001, "输入参数错误");
		errorMap.put(error_5001, "相册平台暂无数据");
		errorMap.put(error_5002, "数据操作失败");
		errorMap.put(error_9000, "其它错误");
	}
	static{
		errorMap_2.put(error_500, "HTTP_INTERNAL_ERROR");
		errorMap_2.put(error_400, "HTTP_BAD_REQUEST");
		errorMap_2.put(error_404, "HTTP_NOT_FOUND");
	}
}
